#ifndef _ASSIGN_H_
#define _ASSIGN_H_
#include "ast/stmtType.h"
#include "ast/exprType.h"
#include "ast/exprType.h"
#include "AstTypes.h"
class IVisitor;
class Assign;
typedef QSharedPointer<Assign> AssignPtr;

class Assign: public stmtType
{
public:
    explicit Assign(const ExprTypeList& targets, const exprTypePtr& value, int nodeId=-1);
    virtual ~Assign();
    
    
    ExprTypeList targets();
    void setTargets(const ExprTypeList& targets);
    
    exprTypePtr value();
    void setValue(const exprTypePtr& value);
    
    
    virtual Ast::AstTypes type() const;
    virtual QString toString() const;
    virtual void accept(IVisitor* visitor, const SimpleNodePtr& node);
    virtual void traverse(IVisitor* visitor);
private:
    ExprTypeList _targets;
    exprTypePtr _value;
};




#endif